//
//  FindCollectionViewCell.m
//  PhoenixNews
//
//  Created by dllo on 16/1/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FindCollectionViewCell.h"

@implementation FindCollectionViewCell

- (void)dealloc {
    [_image release];
    [_lable release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        [_image release];
        self.lable = [[UILabel alloc] init];
        [self.contentView addSubview:_lable];
        [_lable release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    _image.frame = CGRectMake(20, 30, self.frame.size.width - 20, 60);
    _lable.frame = CGRectMake(20, 100, 40, 80);
    _lable.numberOfLines = 0;
}
@end
